package vn.edu.saigontech.ncms.service;

import java.util.Date;
import java.util.List;

import vn.edu.saigontech.ncms.model.bookstore.ImportReceiptDetail;
import vn.edu.saigontech.ncms.model.bookstore.Item;
import vn.edu.saigontech.ncms.service.impl.ImportReceiptDetailServiceImpl;

public interface ImportReceiptDetailService extends GenericService<ImportReceiptDetail, Long> {
	static final ImportReceiptDetailService INSTANCE = new ImportReceiptDetailServiceImpl();
	
	List<Item> findByItemId(Long itemId);
	
	int sumOfImport(Item item, Date toDate, boolean includeToDate);
	
	int sumOfImport(Item item, Date fromDate, Date toDate);
}